Optimal. Leaf size=119 \[ -\frac {16 \sqrt {2} a^3 (1-\sin (e+f x)) \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac {3}{2};-\frac {7}{2},-n;\frac {5}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right )}{3 f \sqrt {\sin (e+f x)+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {2917, 139, 138} \[ -\frac {16 \sqrt {2} a^3 (1-\sin (e+f x)) \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac {3}{2};-\frac {7}{2},-n;\frac {5}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right )}{3 f \sqrt {\sin (e+f x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 138
Rule 139
Rule 2917
Rubi steps
\begin {align*} \int \cos ^2(e+f x) (a+a \sin (e+f x))^3 (c+d \sin (e+f x))^n \, dx &=\frac {\left (a^3 \cos (e+f x)\right ) \operatorname {Subst}\left (\int \sqrt {1-x} (1+x)^{7/2} (c+d x)^n \, dx,x,\sin (e+f x)\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=\frac {\left (a^3 \cos (e+f x) (c+d \sin (e+f x))^n \left (-\frac {c+d \sin (e+f x)}{-c-d}\right )^{-n}\right ) \operatorname {Subst}\left (\int \sqrt {1-x} (1+x)^{7/2} \left (-\frac {c}{-c-d}-\frac {d x}{-c-d}\right )^n \, dx,x,\sin (e+f x)\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=-\frac {16 \sqrt {2} a^3 F_1\left (\frac {3}{2};-\frac {7}{2},-n;\frac {5}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right ) \cos (e+f x) (1-\sin (e+f x)) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n}}{3 f \sqrt {1+\sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 116.95, size = 0, normalized size = 0.00 \[ \int \cos ^2(e+f x) (a+a \sin (e+f x))^3 (c+d \sin (e+f x))^n \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.61, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-{\left (3 \, a^{3} \cos \left (f x + e\right )^{4} - 4 \, a^{3} \cos \left (f x + e\right )^{2} + {\left (a^{3} \cos \left (f x + e\right )^{4} - 4 \, a^{3} \cos \left (f x + e\right )^{2}\right )} \sin \left (f x + e\right )\right )} {\left (d \sin \left (f x + e\right ) + c\right )}^{n}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \sin \left (f x + e\right ) + a\right )}^{3} {\left (d \sin \left (f x + e\right ) + c\right )}^{n} \cos \left (f x + e\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 3.48, size = 0, normalized size = 0.00 \[ \int \left (\cos ^{2}\left (f x +e \right )\right ) \left (a +a \sin \left (f x +e \right )\right )^{3} \left (c +d \sin \left (f x +e \right )\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\cos \left (e+f\,x\right )}^2\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^3\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________